#!/bin/sh
# This script is invoked when installing manual entries.  It generates
# additional links to manual entries, corresponding to the procedure
# and command names described by the manual entry.  For example, the
# Tcl manual entry Hash.3 describes procedures Tcl_InitHashTable,
# Tcl_CreateHashEntry, and many more.  This script will make hard
# links so that Tcl_InitHashTable.3, Tcl_CreateHashEntry.3, and so
# on all refer to Hash.3 in the installed directory.
#
# Because of the length of command and procedure names, this mechanism
# only works on machines that support file names longer than 14 characters.
# This script checks to see if long file names are supported, and it
# doesn't make any links if they are not.
#
# The script takes one argument, which is the name of the directory
# where the manual entries have been installed.

if test $# != 1; then
    echo "Usage: mkLinks dir"
    exit 1
fi

cd $1
echo foo > xyzzyTestingAVeryLongFileName.foo
x=`echo xyzzyTe*`
rm xyzzyTe*
if test "$x" != "xyzzyTestingAVeryLongFileName.foo"; then
    exit
fi

if test -r 3DBorder.3; then
    rm -f Tk_Alloc3DBorderFromObj.3
    rm -f Tk_Get3DBorder.3
    rm -f Tk_Get3DBorderFromObj.3
    rm -f Tk_Draw3DRectangle.3
    rm -f Tk_Fill3DRectangle.3
    rm -f Tk_Draw3DPolygon.3
    rm -f Tk_Fill3DPolygon.3
    rm -f Tk_3DVerticalBevel.3
    rm -f Tk_3DHorizontalBevel.3
    rm -f Tk_SetBackgroundFromBorder.3
    rm -f Tk_NameOf3DBorder.3
    rm -f Tk_3DBorderColor.3
    rm -f Tk_3DBorderGC.3
    rm -f Tk_Free3DBorderFromObj.3
    rm -f Tk_Free3DBorder.3
    cp 3DBorder.3 Tk_Alloc3DBorderFromObj.3
    cp 3DBorder.3 Tk_Get3DBorder.3
    cp 3DBorder.3 Tk_Get3DBorderFromObj.3
    cp 3DBorder.3 Tk_Draw3DRectangle.3
    cp 3DBorder.3 Tk_Fill3DRectangle.3
    cp 3DBorder.3 Tk_Draw3DPolygon.3
    cp 3DBorder.3 Tk_Fill3DPolygon.3
    cp 3DBorder.3 Tk_3DVerticalBevel.3
    cp 3DBorder.3 Tk_3DHorizontalBevel.3
    cp 3DBorder.3 Tk_SetBackgroundFromBorder.3
    cp 3DBorder.3 Tk_NameOf3DBorder.3
    cp 3DBorder.3 Tk_3DBorderColor.3
    cp 3DBorder.3 Tk_3DBorderGC.3
    cp 3DBorder.3 Tk_Free3DBorderFromObj.3
    cp 3DBorder.3 Tk_Free3DBorder.3
fi
if test -r AddOption.3; then
    rm -f Tk_AddOption.3
    cp AddOption.3 Tk_AddOption.3
fi
if test -r BindTable.3; then
    rm -f Tk_CreateBindingTable.3
    rm -f Tk_DeleteBindingTable.3
    rm -f Tk_CreateBinding.3
    rm -f Tk_DeleteBinding.3
    rm -f Tk_GetBinding.3
    rm -f Tk_GetAllBindings.3
    rm -f Tk_DeleteAllBindings.3
    rm -f Tk_BindEvent.3
    cp BindTable.3 Tk_CreateBindingTable.3
    cp BindTable.3 Tk_DeleteBindingTable.3
    cp BindTable.3 Tk_CreateBinding.3
    cp BindTable.3 Tk_DeleteBinding.3
    cp BindTable.3 Tk_GetBinding.3
    cp BindTable.3 Tk_GetAllBindings.3
    cp BindTable.3 Tk_DeleteAllBindings.3
    cp BindTable.3 Tk_BindEvent.3
fi
if test -r CanvPsY.3; then
    rm -f Tk_CanvasPsY.3
    rm -f Tk_CanvasPsBitmap.3
    rm -f Tk_CanvasPsColor.3
    rm -f Tk_CanvasPsFont.3
    rm -f Tk_CanvasPsPath.3
    rm -f Tk_CanvasPsStipple.3
    cp CanvPsY.3 Tk_CanvasPsY.3
    cp CanvPsY.3 Tk_CanvasPsBitmap.3
    cp CanvPsY.3 Tk_CanvasPsColor.3
    cp CanvPsY.3 Tk_CanvasPsFont.3
    cp CanvPsY.3 Tk_CanvasPsPath.3
    cp CanvPsY.3 Tk_CanvasPsStipple.3
fi
if test -r CanvTkwin.3; then
    rm -f Tk_CanvasTkwin.3
    rm -f Tk_CanvasGetCoord.3
    rm -f Tk_CanvasDrawableCoords.3
    rm -f Tk_CanvasSetStippleOrigin.3
    rm -f Tk_CanvasWindowCoords.3
    rm -f Tk_CanvasEventuallyRedraw.3
    rm -f Tk_CanvasTagsOption.3
    cp CanvTkwin.3 Tk_CanvasTkwin.3
    cp CanvTkwin.3 Tk_CanvasGetCoord.3
    cp CanvTkwin.3 Tk_CanvasDrawableCoords.3
    cp CanvTkwin.3 Tk_CanvasSetStippleOrigin.3
    cp CanvTkwin.3 Tk_CanvasWindowCoords.3
    cp CanvTkwin.3 Tk_CanvasEventuallyRedraw.3
    cp CanvTkwin.3 Tk_CanvasTagsOption.3
fi
if test -r CanvTxtInfo.3; then
    rm -f Tk_CanvasTextInfo.3
    cp CanvTxtInfo.3 Tk_CanvasTextInfo.3
fi
if test -r Clipboard.3; then
    rm -f Tk_ClipboardClear.3
    rm -f Tk_ClipboardAppend.3
    cp Clipboard.3 Tk_ClipboardClear.3
    cp Clipboard.3 Tk_ClipboardAppend.3
fi
if test -r ClrSelect.3; then
    rm -f Tk_ClearSelection.3
    cp ClrSelect.3 Tk_ClearSelection.3
fi
if test -r ConfigWidg.3; then
    rm -f Tk_ConfigureWidget.3
    rm -f Tk_Offset.3
    rm -f Tk_ConfigureInfo.3
    rm -f Tk_ConfigureValue.3
    rm -f Tk_FreeOptions.3
    cp ConfigWidg.3 Tk_ConfigureWidget.3
    cp ConfigWidg.3 Tk_Offset.3
    cp ConfigWidg.3 Tk_ConfigureInfo.3
    cp ConfigWidg.3 Tk_ConfigureValue.3
    cp ConfigWidg.3 Tk_FreeOptions.3
fi
if test -r ConfigWind.3; then
    rm -f Tk_ConfigureWindow.3
    rm -f Tk_MoveWindow.3
    rm -f Tk_ResizeWindow.3
    rm -f Tk_MoveResizeWindow.3
    rm -f Tk_SetWindowBorderWidth.3
    rm -f Tk_ChangeWindowAttributes.3
    rm -f Tk_SetWindowBackground.3
    rm -f Tk_SetWindowBackgroundPixmap.3
    rm -f Tk_SetWindowBorder.3
    rm -f Tk_SetWindowBorderPixmap.3
    rm -f Tk_SetWindowColormap.3
    rm -f Tk_DefineCursor.3
    rm -f Tk_UndefineCursor.3
    cp ConfigWind.3 Tk_ConfigureWindow.3
    cp ConfigWind.3 Tk_MoveWindow.3
    cp ConfigWind.3 Tk_ResizeWindow.3
    cp ConfigWind.3 Tk_MoveResizeWindow.3
    cp ConfigWind.3 Tk_SetWindowBorderWidth.3
    cp ConfigWind.3 Tk_ChangeWindowAttributes.3
    cp ConfigWind.3 Tk_SetWindowBackground.3
    cp ConfigWind.3 Tk_SetWindowBackgroundPixmap.3
    cp ConfigWind.3 Tk_SetWindowBorder.3
    cp ConfigWind.3 Tk_SetWindowBorderPixmap.3
    cp ConfigWind.3 Tk_SetWindowColormap.3
    cp ConfigWind.3 Tk_DefineCursor.3
    cp ConfigWind.3 Tk_UndefineCursor.3
fi
if test -r CoordToWin.3; then
    rm -f Tk_CoordsToWindow.3
    cp CoordToWin.3 Tk_CoordsToWindow.3
fi
if test -r CrtErrHdlr.3; then
    rm -f Tk_CreateErrorHandler.3
    rm -f Tk_DeleteErrorHandler.3
    cp CrtErrHdlr.3 Tk_CreateErrorHandler.3
    cp CrtErrHdlr.3 Tk_DeleteErrorHandler.3
fi
if test -r CrtGenHdlr.3; then
    rm -f Tk_CreateGenericHandler.3
    rm -f Tk_DeleteGenericHandler.3
    cp CrtGenHdlr.3 Tk_CreateGenericHandler.3
    cp CrtGenHdlr.3 Tk_DeleteGenericHandler.3
fi
if test -r CrtImgType.3; then
    rm -f Tk_CreateImageType.3
    rm -f Tk_GetImageMasterData.3
    rm -f Tk_InitImageArgs.3
    cp CrtImgType.3 Tk_CreateImageType.3
    cp CrtImgType.3 Tk_GetImageMasterData.3
    cp CrtImgType.3 Tk_InitImageArgs.3
fi
if test -r CrtItemType.3; then
    rm -f Tk_CreateItemType.3
    rm -f Tk_GetItemTypes.3
    cp CrtItemType.3 Tk_CreateItemType.3
    cp CrtItemType.3 Tk_GetItemTypes.3
fi
if test -r CrtPhImgFmt.3; then
    rm -f Tk_CreatePhotoImageFormat.3
    cp CrtPhImgFmt.3 Tk_CreatePhotoImageFormat.3
fi
if test -r CrtSelHdlr.3; then
    rm -f Tk_CreateSelHandler.3
    rm -f Tk_DeleteSelHandler.3
    cp CrtSelHdlr.3 Tk_CreateSelHandler.3
    cp CrtSelHdlr.3 Tk_DeleteSelHandler.3
fi
if test -r CrtWindow.3; then
    rm -f Tk_CreateWindow.3
    rm -f Tk_CreateWindowFromPath.3
    rm -f Tk_DestroyWindow.3
    rm -f Tk_MakeWindowExist.3
    cp CrtWindow.3 Tk_CreateWindow.3
    cp CrtWindow.3 Tk_CreateWindowFromPath.3
    cp CrtWindow.3 Tk_DestroyWindow.3
    cp CrtWindow.3 Tk_MakeWindowExist.3
fi
if test -r DeleteImg.3; then
    rm -f Tk_DeleteImage.3
    cp DeleteImg.3 Tk_DeleteImage.3
fi
if test -r DrawFocHlt.3; then
    rm -f Tk_DrawFocusHighlight.3
    cp DrawFocHlt.3 Tk_DrawFocusHighlight.3
fi
if test -r EventHndlr.3; then
    rm -f Tk_CreateEventHandler.3
    rm -f Tk_DeleteEventHandler.3
    cp EventHndlr.3 Tk_CreateEventHandler.3
    cp EventHndlr.3 Tk_DeleteEventHandler.3
fi
if test -r FindPhoto.3; then
    rm -f Tk_FindPhoto.3
    rm -f Tk_PhotoPutBlock.3
    rm -f Tk_PhotoPutZoomedBlock.3
    rm -f Tk_PhotoGetImage.3
    rm -f Tk_PhotoBlank.3
    rm -f Tk_PhotoExpand.3
    rm -f Tk_PhotoGetSize.3
    rm -f Tk_PhotoSetSize.3
    cp FindPhoto.3 Tk_FindPhoto.3
    cp FindPhoto.3 Tk_PhotoPutBlock.3
    cp FindPhoto.3 Tk_PhotoPutZoomedBlock.3
    cp FindPhoto.3 Tk_PhotoGetImage.3
    cp FindPhoto.3 Tk_PhotoBlank.3
    cp FindPhoto.3 Tk_PhotoExpand.3
    cp FindPhoto.3 Tk_PhotoGetSize.3
    cp FindPhoto.3 Tk_PhotoSetSize.3
fi
if test -r FontId.3; then
    rm -f Tk_FontId.3
    rm -f Tk_FontMetrics.3
    rm -f Tk_PostscriptFontName.3
    cp FontId.3 Tk_FontId.3
    cp FontId.3 Tk_FontMetrics.3
    cp FontId.3 Tk_PostscriptFontName.3
fi
if test -r FreeXId.3; then
    rm -f Tk_FreeXId.3
    cp FreeXId.3 Tk_FreeXId.3
fi
if test -r GeomReq.3; then
    rm -f Tk_GeometryRequest.3
    rm -f Tk_SetInternalBorder.3
    cp GeomReq.3 Tk_GeometryRequest.3
    cp GeomReq.3 Tk_SetInternalBorder.3
fi
if test -r GetAnchor.3; then
    rm -f Tk_GetAnchorFromObj.3
    rm -f Tk_GetAnchor.3
    rm -f Tk_NameOfAnchor.3
    cp GetAnchor.3 Tk_GetAnchorFromObj.3
    cp GetAnchor.3 Tk_GetAnchor.3
    cp GetAnchor.3 Tk_NameOfAnchor.3
fi
if test -r GetBitmap.3; then
    rm -f Tk_AllocBitmapFromObj.3
    rm -f Tk_GetBitmap.3
    rm -f Tk_GetBitmapFromObj.3
    rm -f Tk_DefineBitmap.3
    rm -f Tk_NameOfBitmap.3
    rm -f Tk_SizeOfBitmap.3
    rm -f Tk_FreeBitmapFromObj.3
    rm -f Tk_FreeBitmap.3
    rm -f Tk_GetBitmapFromData.3
    cp GetBitmap.3 Tk_AllocBitmapFromObj.3
    cp GetBitmap.3 Tk_GetBitmap.3
    cp GetBitmap.3 Tk_GetBitmapFromObj.3
    cp GetBitmap.3 Tk_DefineBitmap.3
    cp GetBitmap.3 Tk_NameOfBitmap.3
    cp GetBitmap.3 Tk_SizeOfBitmap.3
    cp GetBitmap.3 Tk_FreeBitmapFromObj.3
    cp GetBitmap.3 Tk_FreeBitmap.3
    cp GetBitmap.3 Tk_GetBitmapFromData.3
fi
if test -r GetCapStyl.3; then
    rm -f Tk_GetCapStyle.3
    rm -f Tk_NameOfCapStyle.3
    cp GetCapStyl.3 Tk_GetCapStyle.3
    cp GetCapStyl.3 Tk_NameOfCapStyle.3
fi
if test -r GetClrmap.3; then
    rm -f Tk_GetColormap.3
    rm -f Tk_FreeColormap.3
    cp GetClrmap.3 Tk_GetColormap.3
    cp GetClrmap.3 Tk_FreeColormap.3
fi
if test -r GetColor.3; then
    rm -f Tk_AllocColorFromObj.3
    rm -f Tk_GetColor.3
    rm -f Tk_GetColorFromObj.3
    rm -f Tk_GetColorByValue.3
    rm -f Tk_NameOfColor.3
    rm -f Tk_FreeColorFromObj.3
    rm -f Tk_FreeColor.3
    cp GetColor.3 Tk_AllocColorFromObj.3
    cp GetColor.3 Tk_GetColor.3
    cp GetColor.3 Tk_GetColorFromObj.3
    cp GetColor.3 Tk_GetColorByValue.3
    cp GetColor.3 Tk_NameOfColor.3
    cp GetColor.3 Tk_FreeColorFromObj.3
    cp GetColor.3 Tk_FreeColor.3
fi
if test -r GetCursor.3; then
    rm -f Tk_AllocCursorFromObj.3
    rm -f Tk_GetCursor.3
    rm -f Tk_GetCursorFromObj.3
    rm -f Tk_GetCursorFromData.3
    rm -f Tk_NameOfCursor.3
    rm -f Tk_FreeCursorFromObj.3
    rm -f Tk_FreeCursor.3
    cp GetCursor.3 Tk_AllocCursorFromObj.3
    cp GetCursor.3 Tk_GetCursor.3
    cp GetCursor.3 Tk_GetCursorFromObj.3
    cp GetCursor.3 Tk_GetCursorFromData.3
    cp GetCursor.3 Tk_NameOfCursor.3
    cp GetCursor.3 Tk_FreeCursorFromObj.3
    cp GetCursor.3 Tk_FreeCursor.3
fi
if test -r GetDash.3; then
    rm -f Tk_GetDash.3
    cp GetDash.3 Tk_GetDash.3
fi
if test -r GetFont.3; then
    rm -f Tk_AllocFontFromObj.3
    rm -f Tk_GetFont.3
    rm -f Tk_GetFontFromObj.3
    rm -f Tk_NameOfFont.3
    rm -f Tk_FreeFontFromObj.3
    rm -f Tk_FreeFont.3
    cp GetFont.3 Tk_AllocFontFromObj.3
    cp GetFont.3 Tk_GetFont.3
    cp GetFont.3 Tk_GetFontFromObj.3
    cp GetFont.3 Tk_NameOfFont.3
    cp GetFont.3 Tk_FreeFontFromObj.3
    cp GetFont.3 Tk_FreeFont.3
fi
if test -r GetGC.3; then
    rm -f Tk_GetGC.3
    rm -f Tk_FreeGC.3
    cp GetGC.3 Tk_GetGC.3
    cp GetGC.3 Tk_FreeGC.3
fi
if test -r GetHINSTANCE.3; then
    rm -f Tk_GetHINSTANCE.3
    cp GetHINSTANCE.3 Tk_GetHINSTANCE.3
fi
if test -r GetHWND.3; then
    rm -f Tk_GetHWND.3
    cp GetHWND.3 Tk_GetHWND.3
fi
if test -r GetImage.3; then
    rm -f Tk_GetImage.3
    rm -f Tk_RedrawImage.3
    rm -f Tk_SizeOfImage.3
    rm -f Tk_FreeImage.3
    cp GetImage.3 Tk_GetImage.3
    cp GetImage.3 Tk_RedrawImage.3
    cp GetImage.3 Tk_SizeOfImage.3
    cp GetImage.3 Tk_FreeImage.3
fi
if test -r GetJoinStl.3; then
    rm -f Tk_GetJoinStyle.3
    rm -f Tk_NameOfJoinStyle.3
    cp GetJoinStl.3 Tk_GetJoinStyle.3
    cp GetJoinStl.3 Tk_NameOfJoinStyle.3
fi
if test -r GetJustify.3; then
    rm -f Tk_GetJustifyFromObj.3
    rm -f Tk_GetJustify.3
    rm -f Tk_NameOfJustify.3
    cp GetJustify.3 Tk_GetJustifyFromObj.3
    cp GetJustify.3 Tk_GetJustify.3
    cp GetJustify.3 Tk_NameOfJustify.3
fi
if test -r GetOption.3; then
    rm -f Tk_GetOption.3
    cp GetOption.3 Tk_GetOption.3
fi
if test -r GetPixels.3; then
    rm -f Tk_GetPixelsFromObj.3
    rm -f Tk_GetPixels.3
    rm -f Tk_GetMMFromObj.3
    rm -f Tk_GetScreenMM.3
    cp GetPixels.3 Tk_GetPixelsFromObj.3
    cp GetPixels.3 Tk_GetPixels.3
    cp GetPixels.3 Tk_GetMMFromObj.3
    cp GetPixels.3 Tk_GetScreenMM.3
fi
if test -r GetPixmap.3; then
    rm -f Tk_GetPixmap.3
    rm -f Tk_FreePixmap.3
    cp GetPixmap.3 Tk_GetPixmap.3
    cp GetPixmap.3 Tk_FreePixmap.3
fi
if test -r GetRelief.3; then
    rm -f Tk_GetReliefFromObj.3
    rm -f Tk_GetRelief.3
    rm -f Tk_NameOfRelief.3
    cp GetRelief.3 Tk_GetReliefFromObj.3
    cp GetRelief.3 Tk_GetRelief.3
    cp GetRelief.3 Tk_NameOfRelief.3
fi
if test -r GetRootCrd.3; then
    rm -f Tk_GetRootCoords.3
    cp GetRootCrd.3 Tk_GetRootCoords.3
fi
if test -r GetScroll.3; then
    rm -f Tk_GetScrollInfo.3
    rm -f Tk_GetScrollInfoObj.3
    cp GetScroll.3 Tk_GetScrollInfo.3
    cp GetScroll.3 Tk_GetScrollInfoObj.3
fi
if test -r GetSelect.3; then
    rm -f Tk_GetSelection.3
    cp GetSelect.3 Tk_GetSelection.3
fi
if test -r GetUid.3; then
    rm -f Tk_GetUid.3
    rm -f Tk_Uid.3
    cp GetUid.3 Tk_GetUid.3
    cp GetUid.3 Tk_Uid.3
fi
if test -r GetVRoot.3; then
    rm -f Tk_GetVRootGeometry.3
    cp GetVRoot.3 Tk_GetVRootGeometry.3
fi
if test -r GetVisual.3; then
    rm -f Tk_GetVisual.3
    cp GetVisual.3 Tk_GetVisual.3
fi
if test -r Grab.3; then
    rm -f Tk_Grab.3
    rm -f Tk_Ungrab.3
    cp Grab.3 Tk_Grab.3
    cp Grab.3 Tk_Ungrab.3
fi
if test -r HWNDToWindow.3; then
    rm -f Tk_HWNDToWindow.3
    cp HWNDToWindow.3 Tk_HWNDToWindow.3
fi
if test -r HandleEvent.3; then
    rm -f Tk_HandleEvent.3
    cp HandleEvent.3 Tk_HandleEvent.3
fi
if test -r IdToWindow.3; then
    rm -f Tk_IdToWindow.3
    cp IdToWindow.3 Tk_IdToWindow.3
fi
if test -r ImgChanged.3; then
    rm -f Tk_ImageChanged.3
    cp ImgChanged.3 Tk_ImageChanged.3
fi
if test -r InternAtom.3; then
    rm -f Tk_InternAtom.3
    rm -f Tk_GetAtomName.3
    cp InternAtom.3 Tk_InternAtom.3
    cp InternAtom.3 Tk_GetAtomName.3
fi
if test -r MainLoop.3; then
    rm -f Tk_MainLoop.3
    cp MainLoop.3 Tk_MainLoop.3
fi
if test -r MainWin.3; then
    rm -f Tk_MainWindow.3
    rm -f Tk_GetNumMainWindows.3
    cp MainWin.3 Tk_MainWindow.3
    cp MainWin.3 Tk_GetNumMainWindows.3
fi
if test -r MaintGeom.3; then
    rm -f Tk_MaintainGeometry.3
    rm -f Tk_UnmaintainGeometry.3
    cp MaintGeom.3 Tk_MaintainGeometry.3
    cp MaintGeom.3 Tk_UnmaintainGeometry.3
fi
if test -r ManageGeom.3; then
    rm -f Tk_ManageGeometry.3
    cp ManageGeom.3 Tk_ManageGeometry.3
fi
if test -r MapWindow.3; then
    rm -f Tk_MapWindow.3
    rm -f Tk_UnmapWindow.3
    cp MapWindow.3 Tk_MapWindow.3
    cp MapWindow.3 Tk_UnmapWindow.3
fi
if test -r MeasureChar.3; then
    rm -f Tk_MeasureChars.3
    rm -f Tk_TextWidth.3
    rm -f Tk_DrawChars.3
    rm -f Tk_UnderlineChars.3
    cp MeasureChar.3 Tk_MeasureChars.3
    cp MeasureChar.3 Tk_TextWidth.3
    cp MeasureChar.3 Tk_DrawChars.3
    cp MeasureChar.3 Tk_UnderlineChars.3
fi
if test -r MoveToplev.3; then
    rm -f Tk_MoveToplevelWindow.3
    cp MoveToplev.3 Tk_MoveToplevelWindow.3
fi
if test -r Name.3; then
    rm -f Tk_Name.3
    rm -f Tk_PathName.3
    rm -f Tk_NameToWindow.3
    cp Name.3 Tk_Name.3
    cp Name.3 Tk_PathName.3
    cp Name.3 Tk_NameToWindow.3
fi
if test -r NameOfImg.3; then
    rm -f Tk_NameOfImage.3
    cp NameOfImg.3 Tk_NameOfImage.3
fi
if test -r OwnSelect.3; then
    rm -f Tk_OwnSelection.3
    cp OwnSelect.3 Tk_OwnSelection.3
fi
if test -r ParseArgv.3; then
    rm -f Tk_ParseArgv.3
    cp ParseArgv.3 Tk_ParseArgv.3
fi
if test -r QWinEvent.3; then
    rm -f Tk_QueueWindowEvent.3
    cp QWinEvent.3 Tk_QueueWindowEvent.3
fi
if test -r Restack.3; then
    rm -f Tk_RestackWindow.3
    cp Restack.3 Tk_RestackWindow.3
fi
if test -r RestrictEv.3; then
    rm -f Tk_RestrictEvents.3
    cp RestrictEv.3 Tk_RestrictEvents.3
fi
if test -r SetAppName.3; then
    rm -f Tk_SetAppName.3
    cp SetAppName.3 Tk_SetAppName.3
fi
if test -r SetClass.3; then
    rm -f Tk_SetClass.3
    rm -f Tk_Class.3
    cp SetClass.3 Tk_SetClass.3
    cp SetClass.3 Tk_Class.3
fi
if test -r SetGrid.3; then
    rm -f Tk_SetGrid.3
    rm -f Tk_UnsetGrid.3
    cp SetGrid.3 Tk_SetGrid.3
    cp SetGrid.3 Tk_UnsetGrid.3
fi
if test -r SetOptions.3; then
    rm -f Tk_CreateOptionTable.3
    rm -f Tk_DeleteOptionTable.3
    rm -f Tk_InitOptions.3
    rm -f Tk_SetOptions.3
    rm -f Tk_FreeSavedOptions.3
    rm -f Tk_RestoreSavedOptions.3
    rm -f Tk_GetOptionValue.3
    rm -f Tk_GetOptionInfo.3
    rm -f Tk_FreeConfigOptions.3
    rm -f Tk_Offset.3
    cp SetOptions.3 Tk_CreateOptionTable.3
    cp SetOptions.3 Tk_DeleteOptionTable.3
    cp SetOptions.3 Tk_InitOptions.3
    cp SetOptions.3 Tk_SetOptions.3
    cp SetOptions.3 Tk_FreeSavedOptions.3
    cp SetOptions.3 Tk_RestoreSavedOptions.3
    cp SetOptions.3 Tk_GetOptionValue.3
    cp SetOptions.3 Tk_GetOptionInfo.3
    cp SetOptions.3 Tk_FreeConfigOptions.3
    cp SetOptions.3 Tk_Offset.3
fi
if test -r SetVisual.3; then
    rm -f Tk_SetWindowVisual.3
    cp SetVisual.3 Tk_SetWindowVisual.3
fi
if test -r StrictMotif.3; then
    rm -f Tk_StrictMotif.3
    cp StrictMotif.3 Tk_StrictMotif.3
fi
if test -r TextLayout.3; then
    rm -f Tk_ComputeTextLayout.3
    rm -f Tk_FreeTextLayout.3
    rm -f Tk_DrawTextLayout.3
    rm -f Tk_UnderlineTextLayout.3
    rm -f Tk_PointToChar.3
    rm -f Tk_CharBbox.3
    rm -f Tk_DistanceToTextLayout.3
    rm -f Tk_IntersectTextLayout.3
    rm -f Tk_TextLayoutToPostscript.3
    cp TextLayout.3 Tk_ComputeTextLayout.3
    cp TextLayout.3 Tk_FreeTextLayout.3
    cp TextLayout.3 Tk_DrawTextLayout.3
    cp TextLayout.3 Tk_UnderlineTextLayout.3
    cp TextLayout.3 Tk_PointToChar.3
    cp TextLayout.3 Tk_CharBbox.3
    cp TextLayout.3 Tk_DistanceToTextLayout.3
    cp TextLayout.3 Tk_IntersectTextLayout.3
    cp TextLayout.3 Tk_TextLayoutToPostscript.3
fi
if test -r TkInitStubs.3; then
    rm -f Tk_InitStubs.3
    cp TkInitStubs.3 Tk_InitStubs.3
fi
if test -r WindowId.3; then
    rm -f Tk_WindowId.3
    rm -f Tk_Parent.3
    rm -f Tk_Display.3
    rm -f Tk_DisplayName.3
    rm -f Tk_ScreenNumber.3
    rm -f Tk_Screen.3
    rm -f Tk_X.3
    rm -f Tk_Y.3
    rm -f Tk_Width.3
    rm -f Tk_Height.3
    rm -f Tk_Changes.3
    rm -f Tk_Attributes.3
    rm -f Tk_IsContainer.3
    rm -f Tk_IsEmbedded.3
    rm -f Tk_IsMapped.3
    rm -f Tk_IsTopLevel.3
    rm -f Tk_ReqWidth.3
    rm -f Tk_ReqHeight.3
    rm -f Tk_InternalBorderWidth.3
    rm -f Tk_Visual.3
    rm -f Tk_Depth.3
    rm -f Tk_Colormap.3
    cp WindowId.3 Tk_WindowId.3
    cp WindowId.3 Tk_Parent.3
    cp WindowId.3 Tk_Display.3
    cp WindowId.3 Tk_DisplayName.3
    cp WindowId.3 Tk_ScreenNumber.3
    cp WindowId.3 Tk_Screen.3
    cp WindowId.3 Tk_X.3
    cp WindowId.3 Tk_Y.3
    cp WindowId.3 Tk_Width.3
    cp WindowId.3 Tk_Height.3
    cp WindowId.3 Tk_Changes.3
    cp WindowId.3 Tk_Attributes.3
    cp WindowId.3 Tk_IsContainer.3
    cp WindowId.3 Tk_IsEmbedded.3
    cp WindowId.3 Tk_IsMapped.3
    cp WindowId.3 Tk_IsTopLevel.3
    cp WindowId.3 Tk_ReqWidth.3
    cp WindowId.3 Tk_ReqHeight.3
    cp WindowId.3 Tk_InternalBorderWidth.3
    cp WindowId.3 Tk_Visual.3
    cp WindowId.3 Tk_Depth.3
    cp WindowId.3 Tk_Colormap.3
fi
if test -r chooseColor.n; then
    rm -f tk_chooseColor.n
    cp chooseColor.n tk_chooseColor.n
fi
if test -r chooseDirectory.n; then
    rm -f tk_chooseDirectory.n
    cp chooseDirectory.n tk_chooseDirectory.n
fi
if test -r dialog.n; then
    rm -f tk_dialog.n
    cp dialog.n tk_dialog.n
fi
if test -r focusNext.n; then
    rm -f tk_focusNext.n
    rm -f tk_focusPrev.n
    rm -f tk_focusFollowsMouse.n
    cp focusNext.n tk_focusNext.n
    cp focusNext.n tk_focusPrev.n
    cp focusNext.n tk_focusFollowsMouse.n
fi
if test -r getOpenFile.n; then
    rm -f tk_getOpenFile.n
    rm -f tk_getSaveFile.n
    cp getOpenFile.n tk_getOpenFile.n
    cp getOpenFile.n tk_getSaveFile.n
fi
if test -r menubar.n; then
    rm -f tk_menuBar.n
    rm -f tk_bindForTraversal.n
    cp menubar.n tk_menuBar.n
    cp menubar.n tk_bindForTraversal.n
fi
if test -r messageBox.n; then
    rm -f tk_messageBox.n
    cp messageBox.n tk_messageBox.n
fi
if test -r optionMenu.n; then
    rm -f tk_optionMenu.n
    cp optionMenu.n tk_optionMenu.n
fi
if test -r palette.n; then
    rm -f tk_setPalette.n
    rm -f tk_bisque.n
    cp palette.n tk_setPalette.n
    cp palette.n tk_bisque.n
fi
if test -r popup.n; then
    rm -f tk_popup.n
    cp popup.n tk_popup.n
fi
exit 0
